package com.ruoyi.web.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 视频播放记录对象 train_video_play_record
 *
 * @author 范书铭
 * @date 2024-10-10
 */
@ApiModel(value = "视频播放记录", description = "")
@TableName(resultMap = "com.ruoyi.web.course.mapper.TrainVideoPlayRecordMapper.TrainVideoPlayRecordResult")
@Data
@EqualsAndHashCode(callSuper = true)
public class TrainVideoPlayRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /** 播放用户 */
    @ApiModelProperty(name = "播放用户", notes = "")
    @Excel(name = "播放用户")
    private Long userId;

    /** 课程ID */
    @ApiModelProperty(name = "课程ID", notes = "")
    @Excel(name = "课程ID")
    private Long courseId;

    /** 章节ID */
    @ApiModelProperty(name = "章节ID", notes = "")
    @Excel(name = "章节ID")
    private Long chapterId;

    /** 视频ID */
    @ApiModelProperty(name = "视频ID", notes = "")
    @Excel(name = "视频ID")
    private Long videoId;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("courseId", getCourseId())
                .append("chapterId", getChapterId())
                .append("videoId", getVideoId())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("remark", getRemark())
                .toString();
    }
}